package com.example.blog.common.exception;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Li_yizYa
 * Date: 2025/7/25
 * Time: 17:53
 */

@Data
public class BlogException extends RuntimeException {
    private int code;
    private String message;

    public BlogException(int code) {
    }

    public BlogException(String message) {
        this.message = message;
    }

    public BlogException(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
